package Hxw3DEngine.core.materials.shader.newFilter 
{
	import Hxw3DEngine.core.materials.shader.filters.Filter3D;
	import Hxw3DEngine.core.materials.shader.utils.ShaderRegisterCache;
	import Hxw3DEngine.core.materials.shader.utils.ShaderRegisterElement;
	import Hxw3DEngine.core.Resource.geometry.ResourceGeometry;
	
	/**
	 * ...	坐标系filter
	 * @author ...
	 */
	public class CoordinateFilter extends Filter3D 
	{
		
		public function CoordinateFilter(name:String="CoordinateFilter") 
		{
			super(name);
			
		}
		
		override public function getFragmentCode(regCache : ShaderRegisterCache) : String {
			super.getFragmentCode(regCache);
			var ft0 : ShaderRegisterElement = regCache.getFt("空闲的Ft");
			
			mov(ft0, regCache.getV(ResourceGeometry.RGB));
			
			mov(regCache.oc,ft0);
			
			return code;
		}
		
		override public function getVertexCode(regCache : ShaderRegisterCache) : String {
			super.getFragmentCode(regCache);
			return code;
		}
		
		
		
	}

}